<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
package ${basepackage}.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @表名 ${table.sqlName}
 * ${table}
 */
@Entity
@Table(name = "${table.sqlName}")
public class ${className} extends BaseModel{

	private static final long serialVersionUID = 1L;

<#list table.columns as column>
  <#if !exclude_column?split(",")?seq_contains(column.sqlName)>
   /**
	 * ${column.columnAlias}
	 */
	@Column(name="${column.sqlName}", nullable=${column.nullable?string}, length = ${column.size})
	private ${column.javaType} ${column.columnNameLower};
  </#if>
</#list>

<#list table.columns as column>
  <#if !exclude_column?split(",")?seq_contains(column.sqlName)>
    public void set${column.columnName}(${column.javaType} value){
        this.${column.columnNameLower} = value;
    }

    public ${column.javaType} get${column.columnName}() {
        return this.${column.columnNameLower};
    }
    
  </#if>
</#list>
}
